/** * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ /** * Copyright (c) 2011-2014 Felix Gnass * Licensed under the MIT license * http://spin.js.org/ * * Example: var opts = { lines: 12 // The number of lines to draw , length: 7 // The length of each line , width: 5 // The line thickness , radius: 10 // The radius of the inner circle , scale: 1.0 // Scales overall size of the spinner , corners: 1 // Roundness (0..1) , color: '#000' // #rgb or #rrggbb , opacity: 1/4 // Opacity of the lines , rotate: 0 // Rotation offset , direction: 1 // 1: clockwise, -1: counterclockwise , speed: 1 // Rounds per second , trail: 100 // Afterglow percentage , fps: 20 // Frames per second when using setTimeout() , zIndex: 2e9 // Use a high z-index by default , className: 'spinner' // CSS class to assign to the element , top: '50%' // center vertically , left: '50%' // center horizontally , shadow: false // Whether to render a shadow , hwaccel: false // Whether to use hardware acceleration (might be buggy) , position: 'absolute' // Element positioning } var target = document.getElementById('foo') var spinner = new Spinner(opts).spin(target) */ /** * @license text 2.0.15 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/text/LICENSE */ /*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ // RequireJS Mustache template plugin // http://github.com/jfparadis/requirejs-mustache // // An alternative to https://github.com/millermedeiros/requirejs-hogan-plugin // // Using Mustache Logic-less templates at http://mustache.github.com // Using and RequireJS text.js at http://requirejs.org/docs/api.html#text // @author JF Paradis // @version 0.0.3 // // Released under the MIT license // // Usage: // require(['backbone', 'stache!mytemplate'], function (Backbone, mytemplate) { // return Backbone.View.extend({ // initialize: function(){ // this.render(); // }, // render: function(){ // this.$el.html(mytemplate({message: 'hello'})); // }); // }); // // Configuration: (optional) // require.config({ // stache: { // extension: '.stache' // default = '.html' // } // }); (function(e,t){typeof define=="function"&&define.amd&&define([],t),e.AdobeGlobalNav=t()})(this,function(){var e,t,n;return function(r){function v(e,t){return h.call(e,t)}function m(e,t){var n,r,i,s,o,u,a,f,c,h,p,v=t&&t.split("/"),m=l.map,g=m&&m["*"]||{};if(e&&e.charAt(0)===".")if(t){e=e.split("/"),o=e.length-1,l.nodeIdCompat&&d.test(e[o])&&(e[o]=e[o].replace(d,"")),e=v.slice(0,v.length-1).concat(e);for(c=0;c0&&(e.splice(c-1,2),c-=2)}}e=e.join("/")}else e.indexOf("./")===0&&(e=e.substring(2));if((v||g)&&m){n=e.split("/");for(c=n.length;c>0;c-=1){r=n.slice(0,c).join("/");if(v)for(h=v.length;h>0;h-=1){i=m[v.slice(0,h).join("/")];if(i){i=i[r];if(i){s=i,u=c;break}}}if(s)break;!a&&g&&g[r]&&(a=g[r],f=c)}!s&&a&&(s=a,u=f),s&&(n.splice(0,u,s),e=n.join("/"))}return e}function g(e,t){return function(){var n=p.call(arguments,0);return typeof n[0]!="string"&&n.length===1&&n.push(null),s.apply(r,n.concat([e,t]))}}function y(e){return function(t){return m(t,e)}}function b(e){return function(t){a[e]=t}}function w(e){if(v(f,e)){var t=f[e];delete f[e],c[e]=!0,i.apply(r,t)}if(!v(a,e)&&!v(c,e))throw new Error("No "+e);return a[e]}function E(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return function(){return l&&l.config&&l.config[e]||{}}}var i,s,o,u,a={},f={},l={},c={},h=Object.prototype.hasOwnProperty,p=[].slice,d=/\.js$/;o=function(e,t){var n,r=E(e),i=r[0];return e=r[1],i&&(i=m(i,t),n=w(i)),i?n&&n.normalize?e=n.normalize(e,y(t)):e=m(e,t):(e=m(e,t),r=E(e),i=r[0],e=r[1],i&&(n=w(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},u={require:function(e){return g(e)},exports:function(e){var t=a[e];return typeof t!="undefined"?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:S(e)}}},i=function(e,t,n,i){var s,l,h,p,d,m=[],y=typeof n,E;i=i||e;if(y==="undefined"||y==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(d=0;d=0&&(t=e.replace(t,r,"%"+r.charCodeAt(0).toString(16).toUpperCase()));return t},e.unescape=function(t){if(!t)return t;t=t.indexOf("+")>=0?e.replace(t,"+"," "):t;try{return decodeURIComponent(t)}catch(n){}return unescape(t)},e.Ta=function(){var n=t.location.hostname,r=e.fpCookieDomainPeriods,i;r||(r=e.cookieDomainPeriods);if(n&&!e.cookieDomain&&!/^[0-9.]+$/.test(n)&&(r=r?parseInt(r):2,r=r>2?r:2,i=n.lastIndexOf("."),i>=0)){for(;i>=0&&r>1;)i=n.lastIndexOf(".",i-1),r--;e.cookieDomain=i>0?n.substring(i):n}return e.cookieDomain},e.c_r=e.cookieRead=function(t){t=e.escape(t);var n=" "+e.d.cookie,r=n.indexOf(" "+t+"="),i=r<0?r:n.indexOf(";",r);return t=r<0?"":e.unescape(n.substring(r+2+t.length,i<0?n.length:i)),t!="[[B]]"?t:""},e.c_w=e.cookieWrite=function(t,n,r){var i=e.Ta(),s=e.cookieLifetime,o;return n=""+n,s=s?(""+s).toUpperCase():"",r&&s!="SESSION"&&s!="NONE"&&((o=n!=""?parseInt(s?s:0):-60)?(r=new Date,r.setTime(r.getTime()+o*1e3)):r==1&&(r=new Date,o=r.getYear(),r.setYear(o+5+(o<1900?1900:0)))),t&&s!="NONE"?(e.d.cookie=t+"="+e.escape(n!=""?n:"[[B]]")+"; path=/;"+(r&&s!="SESSION"?" expires="+r.toGMTString()+";":"")+(i?" domain="+i+";":""),e.cookieRead(t)==n):0},e.D=[],e.C=function(t,n,r){if(e.ka)return 0;e.maxDelay||(e.maxDelay=250);var i=0,s=(new Date).getTime()+e.maxDelay,o=e.d.pb,u=["webkitvisibilitychange","visibilitychange"];o||(o=e.d.qb);if(o&&o=="prerender"){if(!e.W){e.W=1;for(r=0;r0;){r=e.D.shift();if(n&&!r.t&&r.t>t){e.D.unshift(r),setTimeout(e.delayReady,parseInt(e.maxDelay/2));break}e.ka=1,e[r.m].apply(e,r.a),e.ka=0}},e.setAccount=e.sa=function(t){var n,r;if(!e.C("setAccount",arguments))if(e.account=t,e.allAccounts){n=e.allAccounts.concat(t.split(",")),e.allAccounts=[],n.sort();for(r=0;r=0)){f=!1;if(c)for(a=0;a0))if(f=u.indexOf("."),f>0)a=u.substring(0,f),f=(s?s:"")+a+".",c||(c=[]),c.push(f),o+=e.J(a,n,r,i,f);else if(typeof a=="boolean"&&(a=a?"true":"false"),a)o+="&"+e.escape(u)+"="+e.escape(a)}o!=""&&(o+="&."+t)}return o},e.Va=function(){var t="",n,r,i,s,o,u,a,f,l="",c="",h=r="";n=e.c;if(e.pe||e.linkType)if(l=e.linkTrackVars,c=e.linkTrackEvents,e.pe&&(r=e.pe.substring(0,1).toUpperCase()+e.pe.substring(1),e[r]))l=e[r].ob,c=e[r].nb;l&&(l=","+l+","+e.A.join(",")+","),c&&(c=","+c+",",l&&(l+=",events,")),e.events2&&(h+=(h!=""?",":"")+e.events2),e.AudienceManagement&&e.AudienceManagement.isReady()&&(t+=e.J("d",e.AudienceManagement.getEventCallConfigParams()));var p={supplementalDataID:"sdid",timestamp:"ts",dynamicVariablePrefix:"D",visitorID:"vid",marketingCloudVisitorID:"mid",analyticsVisitorID:"aid",audienceManagerLocationHint:"aamlh",audienceManagerBlob:"aamb",authState:"as",pageURLRest:"-g",referrer:"r",vmk:"vmt",visitorMigrationKey:"vmt",charSet:"ce",visitorNamespace:"ns",cookieDomainPeriods:"cdp",cookieLifetime:"cl",variableProvider:"vvp",currencyCode:"cc",channel:"ch",transactionID:"xact",campaign:"v0",latitude:"lat",longitude:"lon",resolution:"s",colorDepth:"c",javascriptVersion:"j",javaEnabled:"v",cookiesEnabled:"k",browserWidth:"bw",browserHeight:"bh",connectionType:"ct",homepage:"hp"};for(r=0;r=0)){if(p[s])s=p[s];else switch(s){case"pageURL":s="g",o.length>255&&(e.pageURLRest=o.substring(255),o=o.substring(0,255));break;case"visitorMigrationServer":s="vmf",e.ssl&&e.visitorMigrationServerSecure&&(o="");break;case"visitorMigrationServerSecure":s="vmf",!e.ssl&&e.visitorMigrationServer&&(o="");break;case"events":h&&(o+=(o!=""?",":"")+h);if(c){u=o.split(","),o="";for(i=0;i=0&&(a=a.substring(0,f)),f=a.indexOf(":"),f>=0&&(a=a.substring(0,f)),c.indexOf(","+a+",")>=0&&(o+=(o?",":"")+u[i])}break;case"events2":o="";break;case"contextData":t+=e.J("c",e[s],l,s),o="";break;default:e.qa(u)&&(i=="prop"?s="c"+u:i=="eVar"?s="v"+u:i=="list"?s="l"+u:i=="hier"&&(s="h"+u,o=o.substring(0,255)))}o&&(t+="&"+s+"="+(s.substring(0,3)!="pev"?e.escape(o):o))}s=="pev3"&&e.g&&(t+=e.g)}return t},e.fb=function(){var t,n,r=e.linkURL,i,s;e.aa=1,r&&!e.linkLeaveQueryString&&(i=r.indexOf("?"),i>=0&&(r=r.substring(0,i))),e.linkURL=r},e.Wa=function(){var t=e.aa,n=e.linkType,r=e.linkURL,i=e.linkName;return n&&(r||i)&&(n=n.toLowerCase(),n!="d"&&n!="e"&&(n="o"),e.pe="lnk_"+n,e.pev1=r?e.escape(r):"",e.pev2=i?e.escape(i):"",t=1),e.abort&&(t=0),t},e.Xa=function(){if(!e.mb){var t=new Date,n=r.location,i,s,o=s=i="",u="",a="",f="1.2",l=e.cookieWrite("s_cc","true",0)?"Y":"N",c="",h="";if(t.setUTCDate&&(f="1.3",0..toPrecision&&(f="1.5",t=[],t.forEach))){f="1.6",s=0,i={};try{s=new Iterator(i),s.next&&(f="1.7",t.reduce&&(f="1.8",f.trim&&(f="1.8.1",Date.parse&&(f="1.8.2",Object.create&&(f="1.8.5")))))}catch(p){}}i=screen.width+"x"+screen.height,o=navigator.javaEnabled()?"Y":"N",s=screen.pixelDepth?screen.pixelDepth:screen.colorDepth,u=e.w.innerWidth?e.w.innerWidth:e.d.documentElement.offsetWidth,a=e.w.innerHeight?e.w.innerHeight:e.d.documentElement.offsetHeight;try{e.b.addBehavior("#default#homePage"),c=e.b.ub(n)?"Y":"N"}catch(d){}try{e.b.addBehavior("#default#clientCaps"),h=e.b.connectionType}catch(v){}e.resolution=i,e.colorDepth=s,e.javascriptVersion=f,e.javaEnabled=o,e.cookiesEnabled=l,e.browserWidth=u,e.browserHeight=a,e.connectionType=h,e.homepage=c,e.mb=1}},e.I={},e.loadModule=function(n,r){var i=e.I[n];if(!i){i=t["AppMeasurement_Module_"+n]?new t["AppMeasurement_Module_"+n](e):{},e.I[n]=e[n]=i,i.Da=function(){return i.Ga},i.Ha=function(t){if(i.Ga=t)e[n+"_onLoad"]=t,e.C(n+"_onLoad",[e,i],1)||t(e,i)};try{Object.defineProperty?Object.defineProperty(i,"onLoad",{get:i.Da,set:i.Ha}):i._olc=1}catch(s){i._olc=1}}r&&(e[n+"_onLoad"]=r,e.C(n+"_onLoad",[e,i],1)||r(e,i))},e.r=function(t){var n,r;for(n in e.I)if(!Object.prototype[n]&&(r=e.I[n])){r._olc&&r.onLoad&&(r._olc=0,r.onLoad(e,r));if(r[t]&&r[t]())return 1}return 0},e.$a=function(){var t=Math.floor(Math.random()*1e13),n=e.visitorSampling,r=e.visitorSamplingGroup;r="s_vsn_"+(e.visitorNamespace?e.visitorNamespace:e.account)+(r?"_"+r:"");var i=e.cookieRead(r);if(n){i&&(i=parseInt(i));if(!i){if(!e.cookieWrite(r,t))return 0;i=t}if(i%1e4>v)return 0}return 1},e.K=function(t,n){var r,i,s,o,u,a;for(r=0;r<2;r++){i=r>0?e.ha:e.c;for(s=0;s0?e.ha:e.c;for(s=0;s255&&(t=""+e,n=t.indexOf("?"),n>0&&(u=t.substring(n+1),t=t.substring(0,n),i=t.toLowerCase(),r=0,i.substring(0,7)=="http://"?r+=7:i.substring(0,8)=="https://"&&(r+=8),n=i.indexOf("/",r),n>0&&(i=i.substring(r,n),s=t.substring(n),t=t.substring(0,n),i.indexOf("google")>=0?o=",q,ie,start,search_key,word,kw,cd,":i.indexOf("yahoo.co")>=0&&(o=",p,ei,"),o&&u)))){if((e=u.split("&"))&&e.length>1){for(r=0;r0&&o.indexOf(","+i.substring(0,n)+",")>=0?a+=(a?"&":"")+i:f+=(f?"&":"")+i;a&&f?u=a+"&"+f:f=""}n=253-(u.length-f.length)-t.length,e=t+(n>0?s.substring(0,n):"")+"?"+u}return e},e.T=!1,e.O=!1,e.Fa=function(t){e.marketingCloudVisitorID=t,e.O=!0,e.l()},e.Q=!1,e.L=!1,e.Aa=function(t){e.analyticsVisitorID=t,e.L=!0,e.l()},e.S=!1,e.N=!1,e.Ca=function(t){e.audienceManagerLocationHint=t,e.N=!0,e.l()},e.R=!1,e.M=!1,e.Ba=function(t){e.audienceManagerBlob=t,e.M=!0,e.l()},e.isReadyToTrack=function(){var t=!0,n=e.visitor;if(n&&n.isAllowed()){!e.T&&!e.marketingCloudVisitorID&&n.getMarketingCloudVisitorID&&(e.T=!0,e.marketingCloudVisitorID=n.getMarketingCloudVisitorID([e,e.Fa]),e.marketingCloudVisitorID)&&(e.O=!0),!e.Q&&!e.analyticsVisitorID&&n.getAnalyticsVisitorID&&(e.Q=!0,e.analyticsVisitorID=n.getAnalyticsVisitorID([e,e.Aa]),e.analyticsVisitorID)&&(e.L=!0),!e.S&&!e.audienceManagerLocationHint&&n.getAudienceManagerLocationHint&&(e.S=!0,e.audienceManagerLocationHint=n.getAudienceManagerLocationHint([e,e.Ca]),e.audienceManagerLocationHint)&&(e.N=!0),!e.R&&!e.audienceManagerBlob&&n.getAudienceManagerBlob&&(e.R=!0,e.audienceManagerBlob=n.getAudienceManagerBlob([e,e.Ba]),e.audienceManagerBlob)&&(e.M=!0);if(e.T&&!e.O&&!e.marketingCloudVisitorID||e.Q&&!e.L&&!e.analyticsVisitorID||e.S&&!e.N&&!e.audienceManagerLocationHint||e.R&&!e.M&&!e.audienceManagerBlob)t=!1}return t},e.k=n,e.o=0,e.callbackWhenReadyToTrack=function(t,r,i){var s;s={},s.Ma=t,s.La=r,s.Ia=i,e.k==n&&(e.k=[]),e.k.push(s),e.o==0&&(e.o=setInterval(e.l,100))},e.l=function(){var t;if(e.isReadyToTrack()){e.o&&(clearInterval(e.o),e.o=0);if(e.k!=n)for(;e.k.length>0;)t=e.k.shift(),t.La.apply(t.Ma,t.Ia)}},e.Ea=function(t){var r,i,s=n,o=n;if(!e.isReadyToTrack()){r=[];if(t!=n)for(i in s={},t)s[i]=t[i];return o={},e.ya(o,!0),r.push(s),r.push(o),e.callbackWhenReadyToTrack(e,e.track,r),!0}return!1},e.Ua=function(){var t=e.cookieRead("s_fid"),n="",r="",i;i=8;var s=4;if(!t||t.indexOf("-")<0){for(t=0;t<16;t++)i=Math.floor(Math.random()*i),n+="0123456789ABCDEF".substring(i,i+1),i=Math.floor(Math.random()*s),r+="0123456789ABCDEF".substring(i,i+1),i=s=16;t=n+"-"+r}return e.cookieWrite("s_fid",t,1)||(t=0),t},e.t=e.track=function(n,i){var s,o=new Date,u="s"+Math.floor(o.getTime()/108e5)%10+Math.floor(Math.random()*1e13),a=o.getYear();a="t="+e.escape(o.getDate()+"/"+o.getMonth()+"/"+(a<1900?a+1900:a)+" "+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+" "+o.getDay()+" "+o.getTimezoneOffset()),e.visitor&&(e.visitor.getAuthState&&(e.authState=e.visitor.getAuthState()),!e.supplementalDataID&&e.visitor.getSupplementalDataID&&(e.supplementalDataID=e.visitor.getSupplementalDataID("AppMeasurement:"+e._in,e.expectSupplementalData?!1:!0))),e.r("_s"),e.C("track",arguments)||(e.Ea(n)||(i&&e.K(i),n&&(s={},e.ya(s,0),e.K(n)),e.$a()&&(!e.analyticsVisitorID&&!e.marketingCloudVisitorID&&(e.fid=e.Ua()),e.fb(),e.usePlugins&&e.doPlugins&&e.doPlugins(e),e.account&&(e.abort||(e.trackOffline&&!e.timestamp&&(e.timestamp=Math.floor(o.getTime()/1e3)),o=t.location,e.pageURL||(e.pageURL=o.href?o.href:o),!e.referrer&&!e.za&&(e.referrer=r.document.referrer,e.za=1),e.referrer=e.Sa(e.referrer),e.r("_g")),e.Wa()&&!e.abort&&(e.Xa(),a+=e.Va(),e.eb(u,a),e.r("_t"),e.referrer=""))),n&&e.K(s,1)),e.abort=e.supplementalDataID=e.timestamp=e.pageURLRest=e.linkObject=e.j=e.linkURL=e.linkName=e.linkType=t.vb=e.pe=e.pev1=e.pev2=e.pev3=e.g=0)},e.tl=e.trackLink=function(t,n,r,i){return e.linkObject=t,e.linkType=n,e.linkName=r,e.track(i)},e.clearVars=function(){var t,n;for(t=0;t=0&&(u=u.substring(0,i)),u=u.replace(/[^A-Za-z0-9]/g,"")),r||(r="2o7.net"),s=s?(""+s).toLowerCase():"d1",r=="2o7.net"&&(s=="d1"?s="112":s=="d2"&&(s="122"),o=""),i=u+"."+s+"."+o+r),r=e.ssl?"https://":"http://",s=e.AudienceManagement&&e.AudienceManagement.isReady(),r+=i+"/b/ss/"+e.account+"/"+(e.mobile?"5.":"")+(s?"10":"1")+"/JS-"+e.version+(e.lb?"T":"")+"/"+t+"?AQB=1&ndh=1&pf=1&"+(s?"callback=s_c_il["+e._in+"].AudienceManagement.passData&":"")+n+"&AQE=1",e.Qa(r),e.X()},e.Qa=function(t){e.e||e.Ya(),e.e.push(t),e.Y=e.u(),e.xa()},e.Ya=function(){e.e=e.ab(),e.e||(e.e=[])},e.ab=function(){var n,r;if(e.da()){try{(r=t.localStorage.getItem(e.ba()))&&(n=t.JSON.parse(r))}catch(i){}return n}},e.da=function(){var n=!0;if(!e.trackOffline||!e.offlineFilename||!t.localStorage||!t.JSON)n=!1;return n},e.na=function(){var t=0;return e.e&&(t=e.e.length),e.z&&t++,t},e.X=function(){if(!e.z)if(e.oa=n,e.ca)e.Y>e.G&&e.va(e.e),e.fa(500);else{var t=e.la();t&&(e.z=1,e.ib(t))}},e.fa=function(t){e.oa||(t||(t=0),e.oa=setTimeout(e.X,t))},e.la=function(){if(e.e.length>0)return e.e.shift()},e.sb=function(){return!1},e.ga=!1;var u;try{u=JSON.parse('{"x":"y"}')}catch(a){u=null}u&&u.x=="y"?(e.ga=!0,e.P=function(e){return JSON.parse(e)}):t.$&&t.$.parseJSON?(e.P=function(e){return t.$.parseJSON(e)},e.ga=!0):e.P=function(){return null},e.ib=function(n){var r,i,s;!r&&e.Za&&(n=n.substring(0,2047)),!r&&e.d.createElement&&e.AudienceManagement&&e.AudienceManagement.isReady()&&(r=e.d.createElement("SCRIPT"))&&"async"in r&&((s=(s=e.d.getElementsByTagName("HEAD"))&&s[0]?s[0]:e.d.body)?(r.type="text/javascript",r.setAttribute("async","async"),i=3):r=0),r||(r=new Image,r.alt=""),r.ja=function(){try{e.ea&&(clearTimeout(e.ea),e.ea=0),r.timeout&&(clearTimeout(r.timeout),r.timeout=0)}catch(t){}},r.onload=r.kb=function(){r.ja(),e.Pa(),e.z=0,e.X();if(r.Ja){r.Ja=!1;try{var t=e.P(r.responseText);AudienceManagement.passData(t)}catch(n){}}},r.onabort=r.onerror=r.Ra=function(){r.ja(),(e.trackOffline||e.ca)&&e.z&&e.e.unshift(e.Oa),e.z=0,e.Y>e.G&&e.va(e.e),e.fa(500)},r.onreadystatechange=function(){r.readyState==4&&(r.status==200?r.kb():r.Ra())},e.ua=e.u();if(i==1||i==2){var o=n.indexOf("?");s=n.substring(0,o),o=n.substring(o+1),o=o.replace(/&callback=[a-zA-Z0-9_.\[\]]+/,""),i==1?(r.open("POST",s,!0),r.send(o)):i==2&&(r.open("POST",s),r.send(o))}else if(r.src=n,i==3){if(e.ra)try{s.removeChild(e.ra)}catch(u){}s.firstChild?s.insertBefore(r,s.firstChild):s.appendChild(r),e.ra=e.Na}r.abort&&(e.ea=setTimeout(r.abort,5e3)),e.Oa=n,e.Na=t["s_i_"+e.replace(e.account,",","_")]=r},e.Pa=function(){if(e.da()&&!(e.ta>e.G))try{t.localStorage.removeItem(e.ba()),e.ta=e.u()}catch(n){}},e.va=function(n){if(e.da()){e.xa();try{t.localStorage.setItem(e.ba(),t.JSON.stringify(n)),e.G=e.u()}catch(r){}}},e.xa=function(){if(e.trackOffline){if(!e.offlineLimit||e.offlineLimit<=0)e.offlineLimit=10;for(;e.e.length>e.offlineLimit;)e.la()}},e.forceOffline=function(){e.ca=!0},e.forceOnline=function(){e.ca=!1},e.ba=function(){return e.offlineFilename+"-"+e.visitorNamespace+e.account},e.u=function(){return(new Date).getTime()},e.Util={urlEncode:e.escape,urlDecode:e.unescape,cookieRead:e.cookieRead,cookieWrite:e.cookieWrite,getQueryParam:function(n,r,i){var s;return r||(r=e.pageURL?e.pageURL:t.location),i||(i="&"),n&&r&&(r=""+r,s=r.indexOf("?"),s>=0&&(r=i+r.substring(s+1)+i,s=r.indexOf(i+n+"="),s>=0&&(r=r.substring(s+i.length+n.length+1),s=r.indexOf(i),s>=0&&(r=r.substring(0,s)),r.length>0)))?e.unescape(r):""}},e.A=["timestamp","charSet","visitorNamespace","cookieDomainPeriods","cookieLifetime","contextData","supplementalDataID","dynamicVariablePrefix","visitorID","marketingCloudVisitorID","analyticsVisitorID","audienceManagerLocationHint","authState","fid","vmk","visitorMigrationKey","visitorMigrationServer","visitorMigrationServerSecure","fpCookieDomainPeriods","pageName","pageURL","referrer","currencyCode","pe","pev1","pev2","pev3","pageURLRest"],e.c=e.A.concat(["purchaseID","variableProvider","channel","server","pageType","transactionID","campaign","state","zip","events","events2","products","audienceManagerBlob","tnt"]),e.ha=["account","allAccounts","visitor","trackOffline","offlineLimit","offlineFilename","usePlugins","doPlugins","configURL","visitorSampling","visitorSamplingGroup","linkObject","linkURL","linkName","linkType","trackDownloadLinks","trackExternalLinks","linkLeaveQueryString","linkTrackVars","linkTrackEvents","useForcedLinkTracking","forcedLinkTrackingTimeout","trackingServer","trackingServerSecure","ssl","abort","mobile","dc","maxDelay","expectSupplementalData","AudienceManagement"];for(i=0;i<=250;i++)i<76&&e.c.push("prop"+i),e.c.push("eVar"+i),i<6&&e.c.push("hier"+i),i<4&&e.c.push("list"+i);i=["latitude","longitude","resolution","colorDepth","javascriptVersion","javaEnabled","cookiesEnabled","browserWidth","browserHeight","connectionType","homepage"],e.c=e.c.concat(i),e.A=e.A.concat(i),e.ssl=t.location.protocol.toLowerCase().indexOf("https")>=0,e.charSet="UTF-8",e.contextData={},e.offlineFilename="AppMeasurement.offline",e.ua=0,e.Y=0,e.G=0,e.ta=0,e.w=t,e.d=t.document;try{e.Za=navigator.appName=="Microsoft Internet Explorer"}catch(f){}}return new e}),n("analytics",["config","lib/app-measurement-light"],function(e,t){"use strict";function n(){this._hasSetTrackingLibraryConfig=!1}return n.prototype={setIsLoggedIn:function(e){n.prototype._isLoggedIn=e},setLocale:function(e){n.prototype._locale=e},trackClickMenubarSitemap:function(){this._track("GlobalNav:OnClick_MenuBarSiteMapButton")},trackClickMenubarSearch:function(){this._track("GlobalNav:OnClick_MenuBarSearchButton")},trackClickMenubarProfile:function(){this._track("GlobalNav:OnClick_MenuBarProfileButton")},trackClickMenubarSignIn:function(){this._track("GlobalNav:OnClick_MenuBarSignInButton")},trackClickSiteMapSubsection:function(e){this._track("GlobalNav:OnClick_SiteMapSubsection"+this._formatEventString(e)+"Button")},trackClose:function(){this._track("GlobalNav:OnClick_Close")},trackPageLoad:function(){this._track("GlobalNav:"+e.VERSION+":OnLoad")},_formatEventString:function(e){var t=e.split("-");for(var n=0;n',t)}r.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(t,n){function o(){return a(e("group",{coordsize:i+" "+i,coordorigin:-r+" "+ -r}),{width:i,height:i})}function h(t,i,u){s(f,s(a(o(),{rotation:360/n.lines*t+"deg",left:~~i}),s(a(e("roundrect",{arcsize:n.corners}),{width:r,height:n.scale*n.width,left:n.scale*n.radius,top:-n.scale*n.width>>1,filter:u}),e("fill",{color:l(n.color,t),opacity:n.opacity}),e("stroke",{opacity:0}))))}var r=n.scale*(n.length+n.width),i=n.scale*2*r,u=-(n.width+n.length)*n.scale*2+"px",f=a(o(),{position:"absolute",top:u,left:u}),c;if(n.shadow)for(c=1;c<=n.lines;c++)h(c,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(c=1;c<=n.lines;c++)h(c);return s(t,f)},h.prototype.opacity=function(e,t,n,r){var i=e.firstChild;r=r.shadow&&r.lines||0,i&&t+r>1)+"px"})}var r=0,u=(t.lines-1)*(1-t.direction)/2,f;for(;r-1},clamp:function(e,t,n){return Math.max(t,Math.min(e,n))},classRegExp:function(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")},clientHeightEm:function(e){return e.clientHeight/this.getPixelsPerEm()},clientWidthEm:function(e){var t=e.getBoundingClientRect(),n="width"in t?t.width:t.right-t.left;return Math.round(n)/this.getPixelsPerEm()},computedProperty:function(e,t){var n=this.dashedToCamelCase(t);return window.getComputedStyle?getComputedStyle(e)[n]:e.currentStyle[n]},computedPropertyEm:function(e,t){var n=this.computedProperty(e,t);return Number(n.replace("px",""))/this.getPixelsPerEm()},createElement:function(e){e=e.trim();var t=document.createElement("div");if(!this._supportsHTML5Elements){var n=this._html5Elements,r=document.createDocumentFragment();for(var i=0;i "+e+", "+":active > "+e},createURLWithQueryParams:function(e,t){if(!t)return e;var n=[];for(var r in t)n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n.length>0?e+"?"+n.join("&"):e},createURLWithHashParams:function(e,t){if(!t)return e;var n=[];for(var r in t)n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n.length>0?e+"#"+n.join("&"):e},css:function(e,t,n){var r=this.dashedToCamelCase(t);e.style[r]=n},cssEm:function(e,t,n){(t==="width"||t==="height")&&n<0&&(n=0),this.css(e,t,n+"em")},cssPx:function(e,t,n){(t==="width"||t==="height")&&n<0&&(n=0),this.css(e,t,n+"px")},cssUnset:function(e,t){if(!e.style.removeProperty){e.style.removeAttribute(t);return}e.style.removeProperty(t)},dashedToCamelCase:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},epsilon:function(){return 1/this.getPixelsPerEm()},enableActivePsuedoClass:function(e){if(e.touchstart===null||e.touchstart===undefined)e.ontouchstart=function(){}},extend:function(e,t){if(typeof e=="undefined")return t;if(typeof e!="object")return e;for(var n in t)t.hasOwnProperty(n)&&(typeof t[n]=="object"?e[n]=this.extend(e[n],t[n]):e[n]=t[n]);return e},getActiveElement:function(){try{return document.activeElement}catch(e){}},getCycledItem:function(e,t,n){var r=e.length-1;return t+=n,n>0&&t>r?t=0:n<0&&t<0&&(t=r),e[t]},getElement:function(e,t){return t.querySelector(this._jsClassPrefix+e)},getElements:function(e,t){return t.querySelectorAll(this._jsClassPrefix+e)},getText:function(t,n,r){var i=this.createURLWithQueryParams(t,n),s=new e;if(this.hasXHR2Support()){var o=new XMLHttpRequest;o.onreadystatechange=function(){var e=4;o.readyState===e&&(o.status===200?s.resolve(o.responseText):s.reject())},setTimeout(function(){try{o.open("GET",i);if(r)for(var e=0;e255)return!0;return!1},isIE:function(){return navigator.appName=="Microsoft Internet Explorer"||navigator.appName=="Netscape"&&(new RegExp("Trident/.*rv:")).exec(navigator.userAgent)!==null},isWin81:function(e){return e=e||navigator.userAgent,!!e.match(/Windows NT 6.3;/)},isIPad:function(e){return e=e||navigator.userAgent,!!e.match(/iPad;/)},isNewerIOS:function(e){e=e||navigator.userAgent;var t=e.match(/ OS (\d+)_.* like Mac OS X/);return t&&t.length>=2?t[1]>=8:!1},isRetinaScreen:function(){return window.devicePixelRatio>1},isSmallScreen:function(){return window.innerWidth<=767},isTouchScreen:function(){return this.isWin81()?"ontouchstart"in document.documentElement&&document.documentElement.ontouchstart!==null:"ontouchstart"in document.documentElement||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints>0},listen:function(e,t,n,r,i){r&&i?n=n.bind(r,i):r&&(n=n.bind(r)),e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,function(e){e.target=window.event.srcElement,e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},n(e)})},isURLInDomain:function(e,t){var n=document.createElement("a");return n.href=e,this.stringEndsWith(n.hostname,t)},getStyleSheet:function(){if(this._styleSheet)return this._styleSheet;var e=document.createElement("style");return document.getElementsByTagName("head")[0].appendChild(e),this._styleSheet=e.sheet||e.styleSheet,this._styleSheet},maxHeightEm:function(e){var t=0;for(var n=0;nt&&(t=i)}return t},noTouchSelector:function(){return"."+this.getNamespace()+"__external__no-touch"},offsetWidthEm:function(e){return e.offsetWidth/this.getPixelsPerEm()},offsetHeightEm:function(e){return e.offsetHeight/this.getPixelsPerEm()},prependElement:function(e,t){e.insertBefore(t,e.firstChild)},removeClass:function(e,t){var n=this._stylingClassPrefix+t;e.classList?e.classList.remove(this._stylingClassPrefix+t):e.className=e.className.replace(this.classRegExp(n)," ")},removeClassBulk:function(e,t){for(var n=0;n0)&&e.preventDefault(),e.stopPropagation()},_getTouchY:function(e){return e.touches&&e.touches[0]&&e.touches[0].screenY?e.touches[0].screenY:0}},t}),n("overlay",["scroll-capture","utils"],function(e,t){"use strict";function n(n,r){this._el=n,this._el.style.zIndex=r.styles.overlayZIndex,t.isNewerIOS()&&(this._el.style.webkitOverflowScrolling="touch"),this.registerCloseArea(this._el);var i=t.getElements("overlay__empty-space",this._el);for(var s=0;s-1){var i=this._listElements[r],s=i.getAttribute("data-nav-list");if(s===n)this._focusItem(t);else{var o=e.getCycledItem(this._listElements,r,t);this._focusFirstItem(o)}}else this._focusItem(t)}},t}),n("icon-maker",["utils"],function(e){"use strict";function t(){this._iconIndex=0,this._classID="icon-"}return t.prototype={makeHoverableIcons:function(e,t,n){this._attribute="data-hoverable-icon",this._makeIcons(e,function(e){this._addColoredDeclaration(e,t),this._addColoredDeclaration(e,n,!0)}.bind(this))},makeStaticIcons:function(e,t){this._attribute="data-static-icon",this._makeIcons(e,function(e){t?this._addColoredDeclaration(e,t):this._addStaticDeclaration(e)}.bind(this))},makeGroupHoverableGrayscaleIcons:function(t,n,r){this._attribute="data-group-hoverable-grayscale-icon",this._makeIcons(t,function(t){if(e.isTouchScreen()&&e.isSmallScreen())this._addStaticDeclaration(t);else{var i="."+e.getNamespace()+"__"+n+" "+t;this._addStaticDeclaration(i,r),this._addGrayscaleDeclaration(t,r)}}.bind(this))},_makeIcons:function(t,n){if(!e.supportsSVG())return;var r=t.querySelectorAll("["+this._attribute+"]");for(var i=0;i";n=n.replace(/()/,"$1"+u)}return"data:image/svg+xml,"+encodeURIComponent(n)},_setColorForSVGElement:function(e,t,n){if(!e.hasAttribute(t)||e.getAttribute(t).indexOf("url")>-1)return;var r=n;if(e.hasAttribute("data-use-luminance-on-grayscale")){var i=e.getAttribute(t),s=parseInt(i.substring(1,3),16),o=parseInt(i.substring(3,5),16),u=parseInt(i.substring(5,7),16),a=(.2126*s+.7152*o+.0722*u)*.8,f=Math.round(a).toString(16).toUpperCase();f.length===1&&(f="0"+f),r="#"+f+f+f}e.setAttribute(t,r)}},new t}),n("text",["module"],function(e){"use strict";function m(e,t){return e===undefined||e===""?t:e}function g(e,t,n,r){if(t===r)return!0;if(e===n){if(e==="http")return m(t,"80")===m(r,"80");if(e==="https")return m(t,"443")===m(r,"443")}return!1}var n,r,i,s,o,u=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],a=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,f=/]*>\s*([\s\S]+)\s*<\/body>/im,l=typeof location!="undefined"&&location.href,c=l&&location.protocol&&location.protocol.replace(/\:/,""),h=l&&location.hostname,p=l&&(location.port||undefined),d={},v=e.config&&e.config()||{};n={version:"2.0.15",strip:function(e){if(e){e=e.replace(a,"");var t=e.match(f);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:v.createXhr||function(){var e,t,n;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;if(typeof ActiveXObject!="undefined")for(t=0;t<3;t+=1){n=u[t];try{e=new ActiveXObject(n)}catch(r){}if(e){u=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,s=e.lastIndexOf("."),o=e.indexOf("./")===0||e.indexOf("../")===0;return s!==-1&&(!o||s>1)?(t=e.substring(0,s),n=e.substring(s+1)):t=e,r=n||t,s=r.indexOf("!"),s!==-1&&(i=r.substring(s+1)==="strip",r=r.substring(0,s),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,r,i){var s,o,u,a=n.xdRegExp.exec(e);return a?(s=a[2],o=a[3],o=o.split(":"),u=o[1],o=o[0],(!s||s===t)&&(!o||o.toLowerCase()===r.toLowerCase())&&(!u&&!o||g(s,u,t,i))):!0},finishLoad:function(e,t,r,i){r=t?n.strip(r):r,v.isBuild&&(d[e]=r),i(r)},load:function(e,t,r,i){if(i&&i.isBuild&&!i.inlineText){r();return}v.isBuild=i&&i.isBuild;var s=n.parseName(e),o=s.moduleName+(s.ext?"."+s.ext:""),u=t.toUrl(o),a=v.useXhr||n.useXhr;if(u.indexOf("empty:")===0){r();return}!l||a(u,c,h,p)?n.get(u,function(t){n.finishLoad(e,s.strip,t,r)},function(e){r.error&&r.error(e)}):t([o],function(e){n.finishLoad(s.moduleName+"."+s.ext,s.strip,e,r)})},write:function(e,t,r,i){if(d.hasOwnProperty(t)){var s=n.jsEscape(d[t]);r.asModule(e+"!"+t,"define(function () { return '"+s+"';});\n")}},writeFile:function(e,t,r,i,s){var o=n.parseName(t),u=o.ext?"."+o.ext:"",a=o.moduleName+u,f=r.toUrl(o.moduleName+u)+".js";n.load(a,r,function(t){var r=function(e){return i(f,e)};r.asModule=function(e,t){return i.asModule(e,f,t)},n.write(e,a,r,s)},s)}};if(v.env==="node"||!v.env&&typeof process!="undefined"&&process.versions&&!!process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"])r=t.nodeRequire("fs"),n.get=function(e,t,n){try{var i=r.readFileSync(e,"utf8");i[0]===""&&(i=i.substring(1)),t(i)}catch(s){n&&n(s)}};else if(v.env==="xhr"||!v.env&&n.createXhr())n.get=function(e,t,r,i){var s=n.createXhr(),o;s.open("GET",e,!0);if(i)for(o in i)i.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),i[o]);v.onXhr&&v.onXhr(s,e),s.onreadystatechange=function(n){var i,o;s.readyState===4&&(i=s.status||0,i>399&&i<600?(o=new Error(e+" HTTP status: "+i),o.xhr=s,r&&r(o)):t(s.responseText),v.onXhrComplete&&v.onXhrComplete(s,e))},s.send(null)};else if(v.env==="rhino"||!v.env&&typeof Packages!="undefined"&&typeof java!="undefined")n.get=function(e,t){var n,r,i="utf-8",s=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),u=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),i)),a="";try{n=new java.lang.StringBuffer,r=u.readLine(),r&&r.length()&&r.charAt(0)===65279&&(r=r.substring(1)),r!==null&&n.append(r);while((r=u.readLine())!==null)n.append(o),n.append(r);a=String(n.toString())}finally{u.close()}t(a)};else if(v.env==="xpconnect"||!v.env&&typeof Components!="undefined"&&Components.classes&&Components.interfaces)i=Components.classes,s=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),o="@mozilla.org/windows-registry-key;1"in i,n.get=function(e,t){var n,r,u,a={};o&&(e=e.replace(/\//g,"\\")),u=new FileUtils.File(e);try{n=i["@mozilla.org/network/file-input-stream;1"].createInstance(s.nsIFileInputStream),n.init(u,1,0,!1),r=i["@mozilla.org/intl/converter-input-stream;1"].createInstance(s.nsIConverterInputStream),r.init(n,"utf-8",n.available(),s.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),r.readString(n.available(),a),r.close(),n.close(),t(a.value)}catch(f){throw new Error((u&&u.path||"")+": "+f)}};return n}),function(t,r){typeof exports=="object"&&exports&&typeof exports.nodeName!="string"?r(exports):typeof n=="function"&&n.amd?n("mustache",["exports"],r):(t.Mustache={},r(Mustache))}(this,function(t){function i(e){return typeof e=="function"}function s(e){return r(e)?"array":typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function u(e,t){return e!=null&&typeof e=="object"&&t in e}function f(e,t){return a.call(e,t)}function c(e){return!f(l,e)}function p(e){return String(e).replace(/[&<>"'\/]/g,function(t){return h[t]})}function b(e,n){function l(){if(a&&!f)while(u.length)delete s[u.pop()];else u=[];a=!1,f=!1}function x(e){typeof e=="string"&&(e=e.split(v,2));if(!r(e)||e.length!==2)throw new Error("Invalid tags: "+e);h=new RegExp(o(e[0])+"\\s*"),p=new RegExp("\\s*"+o(e[1])),b=new RegExp("\\s*"+o("}"+e[1]))}if(!e)return[];var i=[],s=[],u=[],a=!1,f=!1,h,p,b;x(n||t.tags);var T=new S(e),N,C,k,L,A,O;while(!T.eos()){N=T.pos,k=T.scanUntil(h);if(k)for(var M=0,_=k.length;M<_;++M)L=k.charAt(M),c(L)?u.push(s.length):f=!0,s.push(["text",L,N,N+1]),N+=1,L==="\n"&&l();if(!T.scan(h))break;a=!0,C=T.scan(y)||"name",T.scan(d),C==="="?(k=T.scanUntil(m),T.scan(m),T.scanUntil(p)):C==="{"?(k=T.scanUntil(b),T.scan(g),T.scanUntil(p),C="&"):k=T.scanUntil(p);if(!T.scan(p))throw new Error("Unclosed tag at "+T.pos);A=[C,k,N,T.pos],s.push(A);if(C==="#"||C==="^")i.push(A);else if(C==="/"){O=i.pop();if(!O)throw new Error('Unopened section "'+k+'" at '+N);if(O[1]!==k)throw new Error('Unclosed section "'+O[1]+'" at '+N)}else C==="name"||C==="{"||C==="&"?f=!0:C==="="&&x(k)}O=i.pop();if(O)throw new Error('Unclosed section "'+O[1]+'" at '+T.pos);return E(w(s))}function w(e){var t=[],n,r;for(var i=0,s=e.length;i0?r[r.length-1][4]:t;break;default:n.push(i)}}return t}function S(e){this.string=e,this.tail=e,this.pos=0}function x(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function T(){this.cache={}}var n=Object.prototype.toString,r=Array.isArray||function(t){return n.call(t)==="[object Array]"},a=RegExp.prototype.test,l=/\S/,h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},d=/\s*/,v=/\s+/,m=/\s*=/,g=/\s*\}/,y=/#|\^|\/|>|\{|&|=|!/;S.prototype.eos=function(){return this.tail===""},S.prototype.scan=function(t){var n=this.tail.match(t);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},S.prototype.scanUntil=function(t){var n=this.tail.search(t),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r},x.prototype.push=function(t){return new x(t,this)},x.prototype.lookup=function(t){var n=this.cache,r;if(n.hasOwnProperty(t))r=n[t];else{var s=this,o,a,f=!1;while(s){if(t.indexOf(".")>0){r=s.view,o=t.split("."),a=0;while(r!=null&&a"?a=this.renderPartial(o,n,r,i):u==="&"?a=this.unescapedValue(o,n):u==="name"?a=this.escapedValue(o,n):u==="text"&&(a=this.rawValue(o)),a!==undefined&&(s+=a);return s},T.prototype.renderSection=function(t,n,s,o){function l(e){return u.render(e,n,s)}var u=this,a="",f=n.lookup(t[1]);if(!f)return;if(r(f))for(var c=0,h=f.length;c/gi,n);var r=e(t),i=e(n);return r=r.replace(i,n),r=r.replace(/\&(shy|#173|#xad);/gi,"­"),r},itemShouldBeHiddenForLocale:function(e,t){return e.hideForLocales&&t.locale&&this._arrayHas(e.hideForLocales,t.locale)||e.hideForLanguages&&t.language&&this._arrayHas(e.hideForLanguages,t.language)||e.hideForCountries&&t.country&&this._arrayHas(e.hideForCountries,t.country)?!0:e.showForLocales&&(t.locale&&!this._arrayHas(e.showForLocales,t.locale)||t.language&&!this._arrayHasPrefix(e.showForLocales,t.language))||e.showForLanguages&&t.language&&!this._arrayHas(e.showForLanguages,t.language)||e.showForCountries&&t.country&&!this._arrayHas(e.showForCountries,t.country)?!0:!1},chooseURLForLocale:function(e,t){var n=e,r=["localeCodeLinks","defaultLocaleLink","countryCodeLinks","languageCodeLinks","defaultLanguageLink","defaultLink"];if(e&&typeof e=="object")for(var i=0;i-1},_arrayHasPrefix:function(e,t){for(var n=0;n=2?e:"home"},destroy:function(){a.unlisten(window,"orientationchange",this._handleOrientationChange)},setSelected:function(e){this._isShown=e,e?(this._inputEl.focus(),setTimeout(function(){this._inputEl.focus()}.bind(this),400),this._resultsEl.style.display="block",this._inputEl.value.length>0&&this._hideLabel(),a.listen(window,"orientationchange",this._handleOrientationChange,this)):(this._inputEl.blur(),a.unlisten(window,"orientationchange",this._handleOrientationChange))},_showLabel:function(){this._labelEl.style.display="block"},_hideLabel:function(){this._labelEl.style.display="none"},_handleFormSubmit:function(e){e.preventDefault();var t=e.target.action+"#q="+this._inputEl.value;return window.location.href=t,window.location.href.indexOf("search.html#q=")>-1&&location.reload(!0),!1},_handleLabelClick:function(e){this._inputEl.focus()},_handleKeyDown:function(e){setTimeout(function(){this._handleInputChange(e)}.bind(this),1)},_handleInputEvent:function(e){this._inputEl.onkeydown=null,this._handleInputChange(e)},_handleInputChange:function(t){var n=this._inputEl.value.trim(),r=n.replace(/[-/\#,+()$~%":*?<>{}\s]/g,"").toLowerCase(),i=this._templateData.search.loc.localeCodeLinks[this._locale]+"/",s;this._locale==="en_US"&&(i=""),s=e.SEARCH_ENDPOINT+"/services/searchasyoutype.json/home/"+i;if(n.length===0||r.length===0)this._resultData=null,this._clearResults(),this._showLabel();else{n.length>2&&(r=r.substr(0,2)),this._query=r,this._hideLabel();if(!this._resultData||n.length<=2){s+=r+".json";if(e.IS_LOCAL_ENV)s="/cors-proxy/"+s;else if(location.protocol==="http:"||location.protocol==="https:")s=s.replace(/^.+?:/,location.protocol);a.getJSON(s).then(this._handleResultData.bind(this),this._handleResultError.bind(this))}else this._handleResultData(this._resultData)}},_handleResultData:function(e){var t=this._inputEl.value;this._resultData=e;if(t.length===0){this._clearResults();return}if(t.length<2){e.HUBLETS=[],e.SUGGESTIONS=[];for(var n in e.hu)e.HUBLETS.push(e.hu[n]);for(var r in e.su)e.SUGGESTIONS.push(e.su[r]);this._displayResultData(e)}else t.length>=2&&this._filterPrefixMap(t)},_displayResultData:function(e){e.hasSuggestions=e.SUGGESTIONS.length>0,e.hasHublets=e.HUBLETS.length>0,e.hasResults=e.hasSuggestions||e.hasHublets,e.resultsURL=this._getResultsURL(),e.query=this._query,e.strings=this._templateData.search.results;var t=u.render(o,e,this._options);this._clearResults(),this._resultsEl.appendChild(t),this.keyboardNav.registerNewContent(),this._searchResultsLink=a.getElement("search__link",this._resultsEl),a.listen(this._searchResultsLink,"click",this._handleSearchResultsClick,this)},_filterPrefixMap:function(e){var t=this._resultData.pm?this._getValuesAt(this._resultData.pm,e.replace(/\s/g,"").toLowerCase()):null,n={HUBLETS:[],SUGGESTIONS:[]};if(t!==null){if(t.hu)for(var r=0;r-1&&location.reload()},_getResultsURL:function(){var t={q:this._inputEl.value};return{defaultLink:a.createURLWithHashParams(e.SEARCH_ENDPOINT+"/search.html",t),localeCodeType:"defaultSet",defaultLocaleLink:a.createURLWithHashParams(e.SEARCH_ENDPOINT+"/@@LOCALE@@/search.html",t)}},_clearResults:function(){this._resultsEl.innerHTML=""}},l}),n("stache!sitemap",["mustache"],function(e){var t=' {{/sitemap}} ';return e.parse(t),function(n){return e.render(t,n)}}),n("sitemap",["analytics","overlay","keyboard-nav","stache!sitemap","templating","icon-maker","utils"],function(e,t,n,r,i,s,o){"use strict";function u(e){this._options=e}return u.prototype={el:function(){return this._el},attach:function(e,s,u){u?this._el=o.getElement("sitemap",e):(this._el=i.render(r,s,this._options),e.appendChild(this._el)),this.overlay=new t(this._el,this._options),this.keyboardNav=new n(this._el,this._options),this.keyboardNav.registerNewContent();var a=o.getElement("close",this._el);this.overlay.registerCloseButton(a);var f=o.getElements("sitemap__section-list__item__button",this._el);for(var l=0;l>>0,n=Number(arguments[1])||0;n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=t);for(;n=0;t--){var n=e.groups[t];n.subGroups&&n.subGroups.length===0&&e.groups.splice(t,1)}return e}},s}),n("../data/data-embedded",["utils"],function(e){"use strict";var t=function(){this._sharedData={menuBar:{menu:{icon:''},search:{icon:''},signIn:{icon:''},logo:{icon:''}}},this._languageSpecificData={ar:{menuBar:{menu:{label:"القائمة"},search:{label:"بحث"},signIn:{label:"تسجيل الدخول"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},bg:{menuBar:{menu:{label:"Меню"},search:{label:"Търсене"},signIn:{label:"Влизане"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},cs:{menuBar:{menu:{label:"Nabídka"},search:{label:"Hledat"},signIn:{label:"Přihlášení"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},da:{menuBar:{menu:{label:"Menu"},search:{label:"Søg"},signIn:{label:"Log på"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},de:{menuBar:{menu:{label:"Menü"},search:{label:"Suchen"},signIn:{label:"Anmelden"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},en:{menuBar:{menu:{label:"Menu"},search:{label:"Search"},signIn:{label:"Sign In"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},es:{menuBar:{menu:{label:"Menú"},search:{label:"Buscar"},signIn:{label:"Iniciar sesión"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},et:{menuBar:{menu:{label:"Menüü"},search:{label:"Otsing"},signIn:{label:"Logi sisse"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},fi:{menuBar:{menu:{label:"Valikko"},search:{label:"Hae"},signIn:{label:"Kirjaudu sisään"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},fr:{menuBar:{menu:{label:"Menu"},search:{label:"Rechercher"},signIn:{label:"Se connecter"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},he:{menuBar:{menu:{label:"תפריט"},search:{label:"חיפוש"},signIn:{label:"כניסה"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},hr:{menuBar:{menu:{label:"Izbornik"},search:{label:"Pretraživanje"},signIn:{label:"Prijava"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},hu:{menuBar:{menu:{label:"Menü"},search:{label:"Keresés"},signIn:{label:"Bejelentkezés"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},it:{menuBar:{menu:{label:"Menu"},search:{label:"Cerca"},signIn:{label:"Accedi"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},ja:{menuBar:{menu:{label:"メニュー"},search:{label:"検索"},signIn:{label:"ログイン"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:"さん"}},ko:{menuBar:{menu:{label:"메뉴"},search:{label:"검색"},signIn:{label:"로그인"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:"님"}},"long":{menuBar:{menu:{label:""},search:{label:""},signIn:{label:""},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},lt:{menuBar:{menu:{label:"Meniu"},search:{label:"Paieška"},signIn:{label:"Prisijungti"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},lv:{menuBar:{menu:{label:"Izvēlne"},search:{label:"Meklēt"},signIn:{label:"Pierakstīties"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},nb:{menuBar:{menu:{label:"Meny"},search:{label:"Søk"},signIn:{label:"Logg på"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},nl:{menuBar:{menu:{label:"Menu"},search:{label:"Zoeken"},signIn:{label:"Aanmelden"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},pl:{menuBar:{menu:{label:"Menu"},search:{label:"Szukaj"},signIn:{label:"Zaloguj się"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},pt:{menuBar:{menu:{label:"Menu"},search:{label:"Pesquisar"},signIn:{label:"Entrar"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},ro:{menuBar:{menu:{label:"Meniu"},search:{label:"Căutare"},signIn:{label:"Conectare"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},ru:{menuBar:{menu:{label:"Меню"},search:{label:"Поиск"},signIn:{label:"Войти"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},sk:{menuBar:{menu:{label:"Ponuka"},search:{label:"Hľadať"},signIn:{label:"Prihlásiť sa"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},sl:{menuBar:{menu:{label:"Meni"},search:{label:"Iskanje"},signIn:{label:"Prijava"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},sr:{menuBar:{menu:{label:"Meni"},search:{label:"Pretraga"},signIn:{label:"Prijavljivanje"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},sv:{menuBar:{menu:{label:"Meny"},search:{label:"Sök"},signIn:{label:"Logga in"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},tr:{menuBar:{menu:{label:"Menü"},search:{label:"Ara"},signIn:{label:"Giriş Yap"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},uk:{menuBar:{menu:{label:"Меню"},search:{label:"Пошук"},signIn:{label:"Увійти"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},zh_CN:{menuBar:{menu:{label:"菜单"},search:{label:"搜索"},signIn:{label:"登录"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}},zh_TW:{menuBar:{menu:{label:"選單"},search:{label:"搜尋"},signIn:{label:"登入"},logo:{url:{defaultLink:"https://www.adobe.com",localeCodeType:"defaultSet",defaultLocaleLink:"https://www.adobe.com/@@LOCALE@@"}},honorific:""}}}};return t.prototype={getData:function(t){return e.extend(this._sharedData,this._languageSpecificData[t])}},new t}),n("main",["analytics","config","feature-flags","ims","header","menu-bar","logging","polyfills","profile","promise","profile-service","profile-content","profile-template","../data/data-embedded","utils"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d){"use strict";var v=function(e,t,n){this._profileContent=e,this._profileResponse=t,this._imsResponse=n,this._setName(),this._setAvatar(),this._setEmail()};v.prototype={_setName:function(){if(this._profileResponse&&this._profileResponse.user&&this._profileResponse.user.name){var e=this._getHonorific();this.menuBarName=this._profileResponse.user.name.trunctated10+" "+e,this.profileName=this._profileResponse.user.name.trunctated25+" "+e}},_setAvatar:function(){this._profileResponse&&this._profileResponse.user&&(this.avatar=this._profileResponse.user.avatar)},_setEmail:function(){this.email=this._imsResponse.email},_getHonorific:function(){var e=this._profileResponse.user.name.id;return e&&this._profileContent.hasOwnProperty(e)&&this._profileContent[e]?this._profileContent[e].honorific:""},updateIMS:function(e){this._imsResponse=e,this._setEmail()},getJSON:function(){return{menuBarName:this.menuBarName,profileName:this.profileName,avatar:this.avatar,email:this.email}}};var m=function(e){this._options=e,this._init()};return m.prototype={endpoints:{accountServices:"https://cc-collab.adobe.io/profile"},closeSection:function(){f.all([this._headerInitializedPromise]).then(function(){this._header.getSelectedSection()&&this._header.selectSection(null,!1)}.bind(this))},openSection:function(e){f.all([this._headerInitializedPromise]).then(function(){this._header.selectSection(e,!1)}.bind(this))},refreshAvatar:function(){if(!this._profileServicePromise.isComplete())return;var e=this._profileService.resetProfileServicePromise();this._menuBar&&e.then(this._updateMenuBarWithAvatarFromProfile.bind(this),this._handleError("Refreshing profile service")),f.all([this._remoteTemplateDataPromise,this._profileContentPromise,e,this._imsGetProfilePromise]).then(this._updateWithProfileData.bind(this),this._handleError("Getting remote template data, entitlements, and refreshed avatar")),e.then(this._sendAvatarEvent.bind(this),this._handleError("Getting profile for refreshed avatar event")),this._profileService.getProfile(!0)},refreshProfile:function(){if(!this._imsGetProfilePromise.isComplete()||!this._profileServicePromise.isComplete())return;var e=this._ims.resetProfilePromise(),t=this._profileService.resetProfileServicePromise();this._menuBar&&f.all([e]).then(this._updateMenuBarWithUser.bind(this),this._handleErrorFetchingProfile.bind(this)),t.then(this._sendAvatarEvent.bind(this),this._handleError("Getting profile for refreshed avatar event")),f.all([this._remoteTemplateDataPromise,this._profileContentPromise,t,e]).then(this._updateWithProfileData.bind(this),this._handleError("Getting remote template data, entitlements, and refreshed avatar")),this._ims.getProfile(!0),this._profileService.getProfile(!0)},setSections:function(e){this._options.sections=e,this._menuBar&&this._menuBar.showOrHideSections(),this._remoteTemplateDataPromise.isComplete()&&this._header.initializeSections()},destroy:function(){this._header.destroy(),this._ims.destroy(),this._menuBar&&this._menuBar.destroy()},_init:function(){o.setConsoleLoggingEnabled(d.getQueryParameterByName("adobeGlobalNavLogging")),this._initOptions(this._options),e.setLocale(this._options.locale),d.arrayHas(this._options.sections,"profile")&&(this._ims=new r(this._options),this._profileService=new l,this._profileContent=new c(this._options)),this._initPromises(),this._header=new i(this._options,this._ims),this._parentElement&&(this._menuBar=new s(this._header,this._options,this._ims)),this._initPromiseCallbacks(),this._initEmbeddedTemplateData()},_initEmbeddedTemplateData:function(){if(this._menuBar){var e=p.getData(this._options.language);this._menuBar.attach(this._parentElement,e)}},_initOptions:function(e){if(!e)throw"No options were passed to AdobeGlobalNav.";if(e.parentSelector){this._parentElement=document.documentElement.querySelector(e.parentSelector);if(!this._parentElement)throw"No element found for parentSelector: "+e.parentSelector;if(this._parentElement.firstChild)throw"Element specified by parentSelector should not have any children."}if(e.adobeid&&e.adobeid.scope&&!d.arrayHas(e.adobeid.scope.split(","),"gnav"))throw'Scope "gnav" is required on adobeid parameter.';if((!e.sections||d.arrayHas(e.sections,"profile"))&&!e.adobeid)throw"The adobeid parameter is required if using the profile section";this._setDefaultOptions(null,{progressiveEnhancement:!1,locale:"en_US"}),this._setDefaultOptions("styles",{buttonTextColor:"rgb(75%, 75%, 75%)",buttonTextHoverColor:"white",overlayZIndex:2147483647});var n,r,i;if(e.locale.toLowerCase()==="zh_tw")n="zh_TW",i="zh_TW",r="TW";else if(e.locale.toLowerCase()==="zh_cn")n="zh_CN",i="zh_CN",r="CN";else if(e.locale.toLowerCase()==="zh_hk")n="zh_TW",i="zh_HK",r="HK";else{var s=e.locale.indexOf("_");s>=0&&(n=e.locale.substr(0,s).toLowerCase(),r=e.locale.substr(s+1).toUpperCase())}e.events=e.events||{},d.arrayHas(t.SUPPORTED_LANGUAGES,n)?e.language=n:(o.error("Unsupported language: "+n),e.language="en"),d.arrayHas(t.SUPPORTED_COUNTRIES,r)?e.country=r:(o.error("Unsupported country: "+r),e.country="US"),e.locale=i||e.language+"_"+e.country,e.sections=e.sections||["sitemap","search","profile","logo"];var u=["products","how-to-buy","learn-and-support","about-adobe"],a=d.arrayHas(u,e.defaultSitemapSection);e.defaultSitemapSection=a?e.defaultSitemapSection:"products";var f=["creative-cloud","marketing-cloud","document-cloud"],l=d.arrayHas(f,e.defaultSitemapProductsSection);e.defaultSitemapProductsSection=l?e.defaultSitemapProductsSection:"creative-cloud",e._dataPath=e._dataPath||t.GLOBAL_NAV_ENDPOINT+"/json/"+e.language+"/"+d.getNamespace()+".js",e._rightToLeft=this._isRightToLeftLocale(),e._iconColor="#999999",e._iconHoverColor="white",e.language==="ja"&&d.addClass(document.body,"external__lang__ja"),e._rightToLeft&&d.addClass(document.body,"external__rtl"),d.isTouchScreen()||d.addClass(document.body,"external__no-touch"),d.supportsFlexBox()||d.addClass(document.body,"external__no-flexbox")},_initPromises:function(){this._remoteTemplateDataPromise=d.wrapInPromise(this._options._data)||this._fetchRemoteTemplateData(),this._headerInitializedPromise=new f;if(!d.arrayHas(this._options.sections,"profile"))return;this._imsGetAccessTokenInfoPromise=this._ims.getAccessTokenInfo(),this._imsGetAccessTokenPromise=this._options._entitlements?d.wrapInPromise({}):this._ims.getAccessToken(),this._imsGetProfilePromise=d.wrapInPromise(this._options._imsProfile)||this._ims.getProfile(),this._profileServicePromise=this._profileService.getProfileServicePromise(),this._profileContentPromise=this._profileContent.getProfileContentPromise()},_initPromiseCallbacks:function(){this._remoteTemplateDataPromise.then(this._initializeHeader.bind(this),this._handleError("Getting remote template data for header")),this._remoteTemplateDataPromise.then(n.setFlags.bind(n),this._handleError("Getting remote template data for feature flags")),this._menuBar&&this._remoteTemplateDataPromise.then(this._menuBar.updateWithRemoteTemplateData.bind(this._menuBar),this._handleError("Getting remote template data for menubar"));if(!d.arrayHas(this._options.sections,"profile")){this._trackLoggedIn(!1);return}this._imsGetProfilePromise.then(this._trackLoggedIn.bind(this),this._trackLoggedIn.bind(this)),this._profileServicePromise.then(this._sendAvatarEvent.bind(this)),f.all([this._imsGetAccessTokenPromise,this._imsGetAccessTokenInfoPromise,this._imsGetProfilePromise]).then(this._fetchProfile.bind(this),this._handleError("Getting IMS access token")),f.all([this._remoteTemplateDataPromise,this._profileContentPromise,this._profileServicePromise,this._imsGetProfilePromise]).then(this._updateWithProfileData.bind(this),this._handleErrorFetchingProfile.bind(this))},_trackLoggedIn:function(t){e.setIsLoggedIn(!!t)},_initializeHeader:function(e){this._header.attach(e),this._headerInitializedPromise.resolve()},_updateMenuBarWithAvatarFromProfile:function(e){var t=this._options.avatar||this._profileService.getAvatarFromProfile(e);t&&this._menuBar.updateWithAvatar(t)},_updateMenuBarWithUser:function(e){this._user.updateIMS(e),this._menuBar.updateWithUser(this._user)},_sendAvatarEvent:function(e){var t=this._profileService.getAvatarFromProfile(e);t&&this._options.events.avatar&&this._options.events.avatar(t)},_fetchProfile:function(e,t,n){var r=(new Date).getTime();if(t&&t.expiresAtMilliseconds&&r>t.expiresAtMilliseconds-15e3){var i=this._ims.resetAccessTokenPromise();i.then(function(e){this._doFetchProfile(e)}.bind(this),function(){this._doFetchProfile(e),o.error("Refreshing access token")}.bind(this)),this._ims.getAccessToken(!0)}else this._doFetchProfile(e)},_overrideResponseFromOptions:function(e){return e.user.avatar=this._options.avatar||e.user.avatar,e},_updateWithProfileData:function(e,t,n,r){n=this._overrideResponseFromOptions(n),this._user=new v(t,n,r);var i=new h(e,t,n);e.profile=i.getTemplate(),e.profile.user=this._user.getJSON(),this._header.updateWithProfileTemplateData(e),this._menuBar&&this._menuBar.updateWithUser(this._user.getJSON())},_fetchRemoteTemplateData:function(){return d.getJSONP(this._options._dataPath,{},t.JSONP_TEMPLATE_DATA_CALLBACK)},_handleError:function(e){return function(){o.error(e)}.bind(this)},_doFetchProfile:function(e){this._profileService.setToken(e),this._profileService.getProfile(),this._profileContent.getContent()},_handleErrorFetchingProfile:function(){this._menuBar&&this._menuBar.updateWithUser(null)},_setDefaultOptions:function(e,t){var n=e?this._options[e]:this._options;e&&!n&&(n=this._options[e]={});for(var r in t)n[r]=n[r]||t[r]},_isRightToLeftLocale:function(){return d.arrayHas(["ar","he"],this._options.language)}},m}),t("main")});